home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
doors_2
/
tm240.zip
/
BBS.BAT
next >
Wrap
DOS Batch File
|
1990-06-20
|
1KB
|
43 lines
echo off
cls
Rem Load and configure OPUSCOM1 and the Video Fossil for Binkley
opuscom1
ocom_cfg C S1=2048,2048
rem change to my TAG directory and run TAG
c:
cd \tag
tag
rem Now check for the returned Errorlevels from TAG.
if errorlevel 151 goto chekloop
if errorlevel 150 goto nmhevent
:chekloop
rem Wait will countdown 15 seconds and exit with an errorlevel of 0. Pressing
rem escape will force WAIT to exit at an errorlevel of 1. In this example,
rem if the time limit expires, the BBS.BAT file (This file) is run again.
rem if we press escape, the errorlevel of 1 is picked up and sends us to the
rem end of this batch file and the DOS prompt.
wait 0:15
if errorlevel 1 goto end
bbs
:nmhevent
rem This portion is called from within TAG if a user is on line at ZMH
rem (Zone Mail Hour). FidoNet rules state that all systems must be available
rem for mail during the Zone Mail hour (or National Mail Hour).
rem This means that no users should be allowed access to the system during
rem that hour.
rem we wait 2 minutes to allow the 1 minute event time to pass in TAG
wait 2:00
bbs
:end
vfos_del
ocom_cfg r